Refactor: board 도메인 리팩토링 (#245) #271
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 개요
comment와post도메인의 전반적인 리팩토링을 진행했습니다.🔨 작업 내용
공통
remove()헬퍼 메서드 추가 → 삭제 시 연관관계 자동 해제Comment
getComments()통합 → 로그인 여부에 따라likedByMe설정applyLikedByUser()헬퍼 메서드 추가CommentService,CommentLikeService전반 주석 및 구조 정리USER_NOT_FOUND예시 추가Post
getPost()와getPostWithUser()통합validateAndFindCategories()추가 → 카테고리 검증 로직 재사용deletePost()시post.remove()호출로 간소화🔗 관련 이슈
Closes #245
📝 참고 사항
✅ 체크리스트